package Extenddemo;

public class cat extends animal{
    public void sleep(){
        System.out.println(name+"正在睡觉....");
    }

    public static void main(String[] args) {
        cat c1 = new cat();
        c1.age=10;
        c1.name="加菲";
        c1.color = "橘色条纹";
        c1.bark();
        c1.eat();
    }
}
